package base_NIO.NIO;

import java.net.InetSocketAddress;
import java.nio.channels.SocketChannel;

public class NIOClient {
//编写客户端代码：
public static void main(String[] args) throws Exception {
        SocketChannel sc = SocketChannel.open();
        sc.connect(new InetSocketAddress("127.0.0.1", 6666));
        //sc.configureBlocking(false);
        System.out.println("客户端有连接连入");
        while(true);
        }


}